package com.isdepci.project.eleLoad.service.impl;

import com.isdepci.project.eleLoad.domain.AMachineryInformation;
import com.isdepci.project.eleLoad.mapper.AMachineryInformationMapper;
import com.isdepci.project.eleLoad.service.IAMachineryInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 机械信息Service业务层处理
 *
 * @author isdepci
 * @date 2025-02-26
 */
@Service
public class AMachineryInformationServiceImpl implements IAMachineryInformationService
{
    @Autowired
    private AMachineryInformationMapper aMachineryInformationMapper;

    /**
     * 查询机械信息
     */
    @Override
    public AMachineryInformation selectAMachineryInformationById(Long id)
    {
        return aMachineryInformationMapper.selectAMachineryInformationById(id);
    }

    /**
     * 查询机械信息列表
     */
    @Override
    public List<AMachineryInformation> selectAMachineryInformationList(AMachineryInformation aMachineryInformation)
    {
        return aMachineryInformationMapper.selectAMachineryInformationList(aMachineryInformation);
    }

    /**
     * 新增机械信息
     */
    @Override
    public int insertAMachineryInformation(AMachineryInformation aMachineryInformation)
    {
        return aMachineryInformationMapper.insertAMachineryInformation(aMachineryInformation);
    }

    /**
     * 修改机械信息
     */
    @Override
    public int updateAMachineryInformation(AMachineryInformation aMachineryInformation)
    {
        return aMachineryInformationMapper.updateAMachineryInformation(aMachineryInformation);
    }

    /**
     * 批量删除机械信息
     */
    @Override
    public int deleteAMachineryInformationByIds(Long[] ids)
    {
        return aMachineryInformationMapper.deleteAMachineryInformationByIds(ids);
    }

    /**
     * 删除机械信息信息
     */
    @Override
    public int deleteAMachineryInformationById(Long id)
    {
        return aMachineryInformationMapper.deleteAMachineryInformationById(id);
    }
}
